import request from '@/utils/request'

// 工作圈列表
export function workbenchList(data) {
  return request({
    url: 'OaRecord/getOaRecordPageList',
    method: 'post',
    data: data
  })
}
// 工作圈列表
export function eventList(data) {
  return request({
    url: 'OaRecord/queryEvent',
    method: 'post',
    data: data
  })
}
// 根据时间查日程
export function scheduleDayList(data) {
  return request({
    url: 'OaRecord/queryEventByDay',
    method: 'post',
    data: data
  })
}
// 工作圈列表
export function taskListAPI(data) {
  return request({
    url: 'OaRecord/queryTask',
    method: 'post',
    data: data
  })
}

/**
 * 待办消息数
 * @param {*} data
 */
export function oaMessageNumAPI(data) {
  return request({
    url: 'OaBackLog/num',
    method: 'post',
    data: data
  })
}

// =================== 职业动机问卷 ==================
/**
 * 获取纬度信息
 * @param {*} data
 */
export function wikiGetDimensionConfig(data) {
  return request({
    url: 'WikiCareerAssessment/getDimensionConfig',
    method: 'post',
    data: data
  })
}


/**
 * 获取问卷列表
 * @param {*} data
 */
export function wikiGetCareerAssessmentList(data) {
  return request({
    url: 'WikiCareerAssessment/getCareerAssessmentList',
    method: 'post',
    data: data
  })
}


/**
 * 查看问卷分析报告
 * @param {*} data
 */
export function wikiGetAnalysisReport(data) {
  return request({
    url: 'WikiCareerAssessment/getAnalysisReport',
    method: 'post',
    data: data
  })
}


/**
 * 查看问卷填写详情
 * @param {*} data
 */
export function wikiGetGetCareerAssessmentInfo(data) {
  return request({
    url: 'WikiCareerAssessment/getGetCareerAssessmentInfo',
    method: 'post',
    data: data
  })
}